﻿using System;

namespace User.Global.Contracts.Message
{
    public class Message : IMessage
    {
        public string Text { get; set; }
        public MessageTypes MessageType { get; set; }

        public Message(string text, MessageTypes messageType)
        {
            if (text == null)
            {
                throw new NullReferenceException("Message is Null");
            }

            Text = text;
            MessageType = messageType;
        }
    }
}